package com.selfdriving.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

import com.selfdriving.BaseFragmentActivity;
import com.selfdriving.R;

/** 特产 意见反馈 主界面 **/
public class ActivityServiceIdea extends BaseFragmentActivity implements
		OnClickListener
{
	private TextView title;
	private ImageButton gotoBreak;
	private String titleText;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		super.setContentView(R.layout.activity_service_idea);
		Intent intent = super.getIntent();
		Bundle bundle = intent.getBundleExtra("bundle");
		int flag = bundle.getInt("flag");
		titleText = bundle.getString("title");
		initViews();
		initEvents();
	}

	@Override
	protected void initViews()
	{
		gotoBreak = (ImageButton) super.findViewById(R.id.head_break);
		gotoBreak.setVisibility(View.VISIBLE);
		title = (TextView) super.findViewById(R.id.top_text_middle);
		title.setText(titleText);
	}

	@Override
	protected void initEvents()
	{
		// TODO Auto-generated method stub
		gotoBreak.setOnClickListener(this);
	}

	@Override
	public void onBackPressed()
	{
		finish();
	}

	@Override
	public void onClick(View v)
	{
		// TODO Auto-generated method stub
		finish();
	}
}
